package com.wtwd.wtwddevice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wtwd.device.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "电量报警对象",description = "")
public class AlarmPower extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "电量警报主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    @ApiModelProperty(value = "上报类型 1-缺电警报 2-关机警报 3-自动关机警报 4-开机警报")
    private Byte type;

    @ApiModelProperty(value = "剩余电量 百分比")
    private String surplusPower;

    @ApiModelProperty(value = "流水号")
    private String number;

    @ApiModelProperty(value = "设备上报时间")
    private String time;

    public AlarmPower() {
    }




    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getSurplusPower() {
        return surplusPower;
    }

    public void setSurplusPower(String surplusPower) {
        this.surplusPower = surplusPower;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "AlarmPower{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", type=" + type +
                ", surplusPower='" + surplusPower + '\'' +
                ", number='" + number + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
